<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Register Form</title>
 <link rel="stylesheet" href="css/default.css"/>
<link rel="stylesheet" href="css/<%=session.getAttribute("cssView")%>/jquery-ui.css"/>
 <script type="text/javascript" src="js/admission/transaction/applicationform.js"></script>

<script type="text/javascript">
 $(document).ready(function(){
 defaultFunction();
 ui();
 jGrid();
 $( "#applicationTab" ).tabs();
 })
 </script>
</head>

<body>
<%
 List result=(List)request.getAttribute("result");
 List<Object[]> studentExtraInfo=(List<Object[]>)result.get(0);
%>
<div class="pageHeader">Application Form </div>
<div class="content">
 <div class="form">
 <div id="applicationTab">
 <ul>
 <li><a href="#basic">Basic</a></li>
 <li><a href="#extra">Extra Info</a></li>
 </ul>
 <form name="Application Form" action="saveSchoolDetails">
 <div id="basic">


<table class="form" cellpadding="0" cellspacing="0" >
<tr><td colspan="6"><div class="pageHeader">Applicant Details </div></td></tr>
<tr><td>First Name : </td><td><input type="text" name="registrationId" notNull nnm="Enter first name" /></td>
<td>Last Name : </td>
<td ><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 <td>Sur Name:</td>
 <td><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 </tr>
 <tr>
   <td>Date of birth: </td>
   <td><input type="text" name="registrationId" notNull nnm="Enter first name" class='datapicker'  /></td>
<td>Gender : </td>
<td ><select name="select">
<option value="FEMALE">FEMALE</option>
<option value="MALE">MALE</option>
</select></td>
<td>Course : </td>
<td ><select>
</select></td>
 </tr>
 <tr><td colspan="6"><div class="pageHeader">Father Details </div></td></tr>
<tr>
  <td> Name : </td>
  <td><input type="text" name="registrationId" notNull nnm="Enter first name" /></td>
<td>Contact Number  : </td>
<td ><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 <td>Occpucation:</td>
 <td><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 </tr>
 <tr><td colspan="6"><div class="pageHeader">Mother Details </div></td></tr>
<tr>
  <td>Father Name : </td>
  <td><input type="text" name="registrationId" notNull nnm="Enter first name" /></td>
<td>Contact Number  : </td>
<td ><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 <td>Occpucation:</td>
 <td><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td>
 </tr>
<tr>
  <td>Annual Income: </td><td><input type="text" name="phoneNo" phoneno/> </td>
  <td>Mobile No: </td><td><input type="text" name="faxNo" /></td>
  <td>Email id : </td><td><input type="text" name="emailId" email/></tr>
 
<tr><td>Register date : </td><td><input type="text" name="registrationDate" notNull date nnm="Enter register date" /></td><td colspan="3"></td><td align="right" ></td></tr>
</table>

</div> 
<div id="extra" >
 <table>
 <%
 for(Object[] row:studentExtraInfo){
 String lableFor=""+row[3];
 if(lableFor.equals("Admission") ){
 %>
 
 <tr><td><%=row[1]%></td><td><%
 String lableType=""+row[2];
 lableType=lableType.toUpperCase();
 String disabled="";
 String status=""+row[4];
 if(!(status.equals("Y"))){
 disabled="disabled";
 }
 if("TEXT".equals(lableType)){
 %>
 <input type="text" name="extraInfo"  <%=disabled%> />
 <%
 }
 if("TEXTAREA".equals(lableType)){
 %>
 <textarea name="extraInfo"  <%=disabled%>></textarea>
 <%
 }
 if("FILE".equals(lableType)){
 %>
 <input type="file" name="extraInfo"  <%=disabled%>/>
 <%
 }
 %></td></tr>
 <%
 }
 }
 %>
 </table>
</div>
<input type="button" value="Save" onclick="schoolregister.saveupdate();" /><input type="reset" value="Clear" />
</form>
</div>
</div>
 <br/>
<div class="grid_holder">
<a href="#" navigate onclick="return false" style="text-decoration:none" >
<table navigate class="grid" cellpadding="0" cellspacing="0" onDelete="branchs.removeBranch()" onEdit="branchs.editBranch()" searchAction="feegroups.action">
<thead>
<tr>
 <th></th>
<th  >Applicant Id </th>
 
<th>Name</th>
<th  >Gender </th>

 
<th></th>
<th></th>
</tr>
</thead>

<tbody>
 
</tbody></table>
</a>
</div>
</div>
</body>
</html>
